//
//  YZMSuggestionEnterViewController.m
//  YZMicroStock
//
//  Created by wangminhong on 16/4/5.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import "YZMSuggestionEnterViewController.h"

@implementation YZMSuggestionEnterViewController


- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType{
    
    NSString *urlStr = request.URL.absoluteString;
    if ([[urlStr lowercaseString] hasPrefix:[@"jumpCenter:" lowercaseString]]) {
        
        if (!YZMUserServiceInstance.currentUser) {
            
            [YZMUserService showLoginCtrlWithPageName:@"suggestionList"];
            return NO;
        }else{
            
            [YZMHCMInstance pushViewControllerWithName:@"suggestionList" andParams:nil];
            return NO;
        }
    }
    
    return [super webView:webView shouldStartLoadWithRequest:request navigationType:navigationType];
}

@end
